# syntax=docker/dockerfile:1
FROM python:3.9-alpine
# docker build --build-arg ARG_USER=admin --build-arg ARG_PASSWORD=adminNLP -t arxivpost .
# docker run --restart=always -itd -p 8200:8200 arxivpost
ARG ARG_USER=deault_value
ARG ARG_PASSWORD=deault_value
ARG ARG_IP=10.176.52.112
ARG ARG_PORT=27777
ENV DB_USER=$ARG_USER
ENV DB_PASSWORD=$ARG_PASSWORD
ENV DB_IP=$ARG_IP
ENV DB_PORT=$ARG_PORT
RUN mkdir /arXivPost
COPY . /arXivPost
WORKDIR /arXivPost
RUN apk add --no-cache gcc g++ musl-dev linux-headers
RUN pip install -r requirements.txt
RUN cd /arXivPost
RUN cp -R ./nltk_data /root
CMD ["python", "paper_bot.py", "8200"]
EXPOSE 8200
